3.24.71 \(\int \frac {(d+e x)^4 (f+g x)}{(a+b x+c x^2)^3} \, dx\) [2371]

3.24.71.1 Optimal result
3.24.71.2 Mathematica [A] (verified)
3.24.71.3 Rubi [A] (verified)
3.24.71.4 Maple [B] (verified)
3.24.71.5 Fricas [B] (verification not implemented)
3.24.71.6 Sympy [F(-1)]
3.24.71.7 Maxima [F(-2)]
3.24.71.8 Giac [B] (verification not implemented)
3.24.71.9 Mupad [B] (verification not implemented)

3.24.71.1 Optimal result

Integrand size = 25, antiderivative size = 543 \[ \int \frac {(d+e x)^4 (f+g x)}{\left (a+b x+c x^2\right )^3} \, dx=\frac {(d+e x)^3 \left (2 a c (e f+d g)-b (c d f+a e g)-\left (2 c^2 d f+b^2 e g-c (b e f+b d g+2 a e g)\right ) x\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}+\frac {(d+e x) \left (b^3 e \left (c d^2-2 a e^2\right ) g-b^2 c d \left (a e^2 g+3 c d (2 e f+d g)\right )+2 b c \left (3 c^2 d^3 f+7 a^2 e^3 g+a c d e (9 e f+7 d g)\right )-4 a c^2 e \left (3 c d^2 f+a e (3 e f+8 d g)\right )+\left (12 c^4 d^3 f-2 b^4 e^3 g+b^2 c e^2 (b d+15 a e) g-2 c^3 d (3 b d (3 e f+d g)-2 a e (3 e f+4 d g))-c^2 e \left (16 a^2 e^2 g-b^2 d (6 e f+5 d g)+2 a b e (3 e f+11 d g)\right )\right ) x\right )}{2 c^2 \left (b^2-4 a c\right )^2 \left (a+b x+c x^2\right )}-\frac {\left (12 c^5 d^4 f-b^5 e^4 g+10 a b^3 c e^4 g-30 a^2 b c^2 e^4 g-2 c^4 d^2 (3 b d (4 e f+d g)-4 a e (3 e f+2 d g))+4 c^3 e \left (b^2 d^2 (3 e f+2 d g)-3 a b d e (2 e f+3 d g)+3 a^2 e^2 (e f+4 d g)\right )\right ) \text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{c^3 \left (b^2-4 a c\right )^{5/2}}+\frac {e^4 g \log \left (a+b x+c x^2\right )}{2 c^3} \]

output
1/2*(e*x+d)^3*(2*a*c*(d*g+e*f)-b*(a*e*g+c*d*f)-(2*c^2*d*f+b^2*e*g-c*(2*a*e 
*g+b*d*g+b*e*f))*x)/c/(-4*a*c+b^2)/(c*x^2+b*x+a)^2+1/2*(e*x+d)*(b^3*e*(-2* 
a*e^2+c*d^2)*g-b^2*c*d*(a*e^2*g+3*c*d*(d*g+2*e*f))+2*b*c*(3*c^2*d^3*f+7*a^ 
2*e^3*g+a*c*d*e*(7*d*g+9*e*f))-4*a*c^2*e*(3*c*d^2*f+a*e*(8*d*g+3*e*f))+(12 
*c^4*d^3*f-2*b^4*e^3*g+b^2*c*e^2*(15*a*e+b*d)*g-2*c^3*d*(3*b*d*(d*g+3*e*f) 
-2*a*e*(4*d*g+3*e*f))-c^2*e*(16*a^2*e^2*g-b^2*d*(5*d*g+6*e*f)+2*a*b*e*(11* 
d*g+3*e*f)))*x)/c^2/(-4*a*c+b^2)^2/(c*x^2+b*x+a)-(12*c^5*d^4*f-b^5*e^4*g+1 
0*a*b^3*c*e^4*g-30*a^2*b*c^2*e^4*g-2*c^4*d^2*(3*b*d*(d*g+4*e*f)-4*a*e*(2*d 
*g+3*e*f))+4*c^3*e*(b^2*d^2*(2*d*g+3*e*f)-3*a*b*d*e*(3*d*g+2*e*f)+3*a^2*e^ 
2*(4*d*g+e*f)))*arctanh((2*c*x+b)/(-4*a*c+b^2)^(1/2))/c^3/(-4*a*c+b^2)^(5/ 
2)+1/2*e^4*g*ln(c*x^2+b*x+a)/c^3
 
3.24.71.2 Mathematica [A] (verified)

Time = 1.16 (sec) , antiderivative size = 897, normalized size of antiderivative = 1.65 \[ \int \frac {(d+e x)^4 (f+g x)}{\left (a+b x+c x^2\right )^3} \, dx=\frac {\frac {b^5 e^4 g x+b^4 e^3 (a e g-c (e f+4 d g) x)-b^3 c e^2 (-2 c d (2 e f+3 d g) x+a e (e f+4 d g+5 e g x))+2 c^2 \left (a^3 e^4 g-c^3 d^4 f x-a^2 c e^2 \left (6 d^2 g+e^2 f x+4 d e (f+g x)\right )+a c^2 d^2 \left (d^2 g+6 e^2 f x+4 d e (f+g x)\right )\right )+b c^2 \left (c^2 d^3 (-d f+4 e f x+d g x)+a^2 e^3 (3 e f+12 d g+5 e g x)-2 a c d e \left (2 d^2 g+6 e^2 f x+3 d e (f+3 g x)\right )\right )+2 b^2 c e \left (-2 a^2 e^3 g-c^2 d^2 (3 e f+2 d g) x+a c e \left (3 d^2 g+2 e^2 f x+2 d e (f+4 g x)\right )\right )}{\left (b^2-4 a c\right ) (a+x (b+c x))^2}+\frac {-b^6 e^4 g+b^5 c e^3 (4 d g+e (f+4 g x))+2 b^3 c^2 e \left (c d^2 (3 e f+2 d g)-a e^2 (4 e f+16 d g+15 e g x)\right )+b^2 c^2 \left (-39 a^2 e^4 g+c^2 d^2 \left (-12 d e f-3 d^2 g+12 e^2 f x+8 d e g x\right )+2 a c e^2 \left (10 d e f+15 d^2 g+8 e^2 f x+32 d e g x\right )\right )+2 b c^3 \left (a^2 e^3 (11 e f+44 d g+25 e g x)+2 a c d e \left (2 d^2 g-6 e^2 f x+3 d e (f-3 g x)\right )+3 c^2 d^3 (-4 e f x+d (f-g x))\right )-b^4 c e^2 \left (-11 a e^2 g+2 c \left (3 d^2 g+e^2 f x+2 d e (f+2 g x)\right )\right )+4 c^3 \left (8 a^3 e^4 g+3 c^3 d^4 f x+2 a c^2 d^2 e (3 e f+2 d g) x-a^2 c e^2 \left (24 d^2 g+5 e^2 f x+4 d e (4 f+5 g x)\right )\right )}{\left (b^2-4 a c\right )^2 (a+x (b+c x))}+\frac {2 c \left (12 c^5 d^4 f-b^5 e^4 g+10 a b^3 c e^4 g-30 a^2 b c^2 e^4 g+2 c^4 d^2 (-3 b d (4 e f+d g)+4 a e (3 e f+2 d g))+4 c^3 e \left (b^2 d^2 (3 e f+2 d g)-3 a b d e (2 e f+3 d g)+3 a^2 e^2 (e f+4 d g)\right )\right ) \arctan \left (\frac {b+2 c x}{\sqrt {-b^2+4 a c}}\right )}{\left (-b^2+4 a c\right )^{5/2}}+c e^4 g \log (a+x (b+c x))}{2 c^4} \]

input
Integrate[((d + e*x)^4*(f + g*x))/(a + b*x + c*x^2)^3,x]
 
output
((b^5*e^4*g*x + b^4*e^3*(a*e*g - c*(e*f + 4*d*g)*x) - b^3*c*e^2*(-2*c*d*(2 
*e*f + 3*d*g)*x + a*e*(e*f + 4*d*g + 5*e*g*x)) + 2*c^2*(a^3*e^4*g - c^3*d^ 
4*f*x - a^2*c*e^2*(6*d^2*g + e^2*f*x + 4*d*e*(f + g*x)) + a*c^2*d^2*(d^2*g 
 + 6*e^2*f*x + 4*d*e*(f + g*x))) + b*c^2*(c^2*d^3*(-(d*f) + 4*e*f*x + d*g* 
x) + a^2*e^3*(3*e*f + 12*d*g + 5*e*g*x) - 2*a*c*d*e*(2*d^2*g + 6*e^2*f*x + 
 3*d*e*(f + 3*g*x))) + 2*b^2*c*e*(-2*a^2*e^3*g - c^2*d^2*(3*e*f + 2*d*g)*x 
 + a*c*e*(3*d^2*g + 2*e^2*f*x + 2*d*e*(f + 4*g*x))))/((b^2 - 4*a*c)*(a + x 
*(b + c*x))^2) + (-(b^6*e^4*g) + b^5*c*e^3*(4*d*g + e*(f + 4*g*x)) + 2*b^3 
*c^2*e*(c*d^2*(3*e*f + 2*d*g) - a*e^2*(4*e*f + 16*d*g + 15*e*g*x)) + b^2*c 
^2*(-39*a^2*e^4*g + c^2*d^2*(-12*d*e*f - 3*d^2*g + 12*e^2*f*x + 8*d*e*g*x) 
 + 2*a*c*e^2*(10*d*e*f + 15*d^2*g + 8*e^2*f*x + 32*d*e*g*x)) + 2*b*c^3*(a^ 
2*e^3*(11*e*f + 44*d*g + 25*e*g*x) + 2*a*c*d*e*(2*d^2*g - 6*e^2*f*x + 3*d* 
e*(f - 3*g*x)) + 3*c^2*d^3*(-4*e*f*x + d*(f - g*x))) - b^4*c*e^2*(-11*a*e^ 
2*g + 2*c*(3*d^2*g + e^2*f*x + 2*d*e*(f + 2*g*x))) + 4*c^3*(8*a^3*e^4*g + 
3*c^3*d^4*f*x + 2*a*c^2*d^2*e*(3*e*f + 2*d*g)*x - a^2*c*e^2*(24*d^2*g + 5* 
e^2*f*x + 4*d*e*(4*f + 5*g*x))))/((b^2 - 4*a*c)^2*(a + x*(b + c*x))) + (2* 
c*(12*c^5*d^4*f - b^5*e^4*g + 10*a*b^3*c*e^4*g - 30*a^2*b*c^2*e^4*g + 2*c^ 
4*d^2*(-3*b*d*(4*e*f + d*g) + 4*a*e*(3*e*f + 2*d*g)) + 4*c^3*e*(b^2*d^2*(3 
*e*f + 2*d*g) - 3*a*b*d*e*(2*e*f + 3*d*g) + 3*a^2*e^2*(e*f + 4*d*g)))*ArcT 
an[(b + 2*c*x)/Sqrt[-b^2 + 4*a*c]])/(-b^2 + 4*a*c)^(5/2) + c*e^4*g*Log[...
 
3.24.71.3 Rubi [A] (verified)

Time = 1.11 (sec) , antiderivative size = 586, normalized size of antiderivative = 1.08, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {1233, 25, 1233, 27, 1142, 1083, 219, 1103}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {(d+e x)^4 (f+g x)}{\left (a+b x+c x^2\right )^3} \, dx\)

\(\Big \downarrow \) 1233

\(\displaystyle \frac {\int -\frac {(d+e x)^2 \left (6 c^2 f d^2-3 b c (2 e f+d g) d+b e (b d-3 a e) g+2 a c e (3 e f+4 d g)-2 \left (b^2-4 a c\right ) e^2 g x\right )}{\left (c x^2+b x+a\right )^2}dx}{2 c \left (b^2-4 a c\right )}+\frac {(d+e x)^3 \left (-x \left (-c (2 a e g+b d g+b e f)+b^2 e g+2 c^2 d f\right )-b (a e g+c d f)+2 a c (d g+e f)\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}\)

\(\Big \downarrow \) 25

\(\displaystyle \frac {(d+e x)^3 \left (-x \left (-c (2 a e g+b d g+b e f)+b^2 e g+2 c^2 d f\right )-b (a e g+c d f)+2 a c (d g+e f)\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}-\frac {\int \frac {(d+e x)^2 \left (6 c^2 f d^2-3 b c (2 e f+d g) d+b e (b d-3 a e) g+2 a c e (3 e f+4 d g)-2 \left (b^2-4 a c\right ) e^2 g x\right )}{\left (c x^2+b x+a\right )^2}dx}{2 c \left (b^2-4 a c\right )}\)

\(\Big \downarrow \) 1233

\(\displaystyle \frac {(d+e x)^3 \left (-x \left (-c (2 a e g+b d g+b e f)+b^2 e g+2 c^2 d f\right )-b (a e g+c d f)+2 a c (d g+e f)\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}-\frac {\frac {\int -\frac {2 \left (6 c^4 f d^4-c^3 (3 b d (4 e f+d g)-4 a e (3 e f+2 d g)) d^2+a b^3 e^4 g-7 a^2 b c e^4 g+2 c^2 e \left (b^2 (3 e f+2 d g) d^2-3 a b e (2 e f+3 d g) d+3 a^2 e^2 (e f+4 d g)\right )+\left (b^2-4 a c\right )^2 e^4 g x\right )}{c x^2+b x+a}dx}{c \left (b^2-4 a c\right )}-\frac {(d+e x) \left (x \left (-c^2 e \left (16 a^2 e^2 g+2 a b e (11 d g+3 e f)+b^2 (-d) (5 d g+6 e f)\right )+b^2 c e^2 g (15 a e+b d)-2 c^3 d (3 b d (d g+3 e f)-2 a e (4 d g+3 e f))-2 b^4 e^3 g+12 c^4 d^3 f\right )+2 b c \left (7 a^2 e^3 g+a c d e (7 d g+9 e f)+3 c^2 d^3 f\right )+b^3 \left (c d^2 e g-2 a e^3 g\right )-b^2 c d \left (a e^2 g+3 c d (d g+2 e f)\right )-4 a c^2 e \left (a e (8 d g+3 e f)+3 c d^2 f\right )\right )}{c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )}}{2 c \left (b^2-4 a c\right )}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {(d+e x)^3 \left (-x \left (-c (2 a e g+b d g+b e f)+b^2 e g+2 c^2 d f\right )-b (a e g+c d f)+2 a c (d g+e f)\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}-\frac {-\frac {2 \int \frac {6 c^4 f d^4-c^3 (3 b d (4 e f+d g)-4 a e (3 e f+2 d g)) d^2+a b^3 e^4 g-7 a^2 b c e^4 g+2 c^2 e \left (b^2 (3 e f+2 d g) d^2-3 a b e (2 e f+3 d g) d+3 a^2 e^2 (e f+4 d g)\right )+\left (b^2-4 a c\right )^2 e^4 g x}{c x^2+b x+a}dx}{c \left (b^2-4 a c\right )}-\frac {(d+e x) \left (x \left (-c^2 e \left (16 a^2 e^2 g+2 a b e (11 d g+3 e f)+b^2 (-d) (5 d g+6 e f)\right )+b^2 c e^2 g (15 a e+b d)-2 c^3 d (3 b d (d g+3 e f)-2 a e (4 d g+3 e f))-2 b^4 e^3 g+12 c^4 d^3 f\right )+2 b c \left (7 a^2 e^3 g+a c d e (7 d g+9 e f)+3 c^2 d^3 f\right )+b^3 \left (c d^2 e g-2 a e^3 g\right )-b^2 c d \left (a e^2 g+3 c d (d g+2 e f)\right )-4 a c^2 e \left (a e (8 d g+3 e f)+3 c d^2 f\right )\right )}{c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )}}{2 c \left (b^2-4 a c\right )}\)

\(\Big \downarrow \) 1142

\(\displaystyle \frac {(d+e x)^3 \left (-x \left (-c (2 a e g+b d g+b e f)+b^2 e g+2 c^2 d f\right )-b (a e g+c d f)+2 a c (d g+e f)\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}-\frac {-\frac {2 \left (\frac {\left (4 c^3 e \left (3 a^2 e^2 (4 d g+e f)-3 a b d e (3 d g+2 e f)+b^2 d^2 (2 d g+3 e f)\right )-30 a^2 b c^2 e^4 g+10 a b^3 c e^4 g-2 c^4 d^2 (3 b d (d g+4 e f)-4 a e (2 d g+3 e f))+b^5 \left (-e^4\right ) g+12 c^5 d^4 f\right ) \int \frac {1}{c x^2+b x+a}dx}{2 c}+\frac {e^4 g \left (b^2-4 a c\right )^2 \int \frac {b+2 c x}{c x^2+b x+a}dx}{2 c}\right )}{c \left (b^2-4 a c\right )}-\frac {(d+e x) \left (x \left (-c^2 e \left (16 a^2 e^2 g+2 a b e (11 d g+3 e f)+b^2 (-d) (5 d g+6 e f)\right )+b^2 c e^2 g (15 a e+b d)-2 c^3 d (3 b d (d g+3 e f)-2 a e (4 d g+3 e f))-2 b^4 e^3 g+12 c^4 d^3 f\right )+2 b c \left (7 a^2 e^3 g+a c d e (7 d g+9 e f)+3 c^2 d^3 f\right )+b^3 \left (c d^2 e g-2 a e^3 g\right )-b^2 c d \left (a e^2 g+3 c d (d g+2 e f)\right )-4 a c^2 e \left (a e (8 d g+3 e f)+3 c d^2 f\right )\right )}{c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )}}{2 c \left (b^2-4 a c\right )}\)

\(\Big \downarrow \) 1083

\(\displaystyle \frac {(d+e x)^3 \left (-x \left (-c (2 a e g+b d g+b e f)+b^2 e g+2 c^2 d f\right )-b (a e g+c d f)+2 a c (d g+e f)\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}-\frac {-\frac {2 \left (\frac {e^4 g \left (b^2-4 a c\right )^2 \int \frac {b+2 c x}{c x^2+b x+a}dx}{2 c}-\frac {\left (4 c^3 e \left (3 a^2 e^2 (4 d g+e f)-3 a b d e (3 d g+2 e f)+b^2 d^2 (2 d g+3 e f)\right )-30 a^2 b c^2 e^4 g+10 a b^3 c e^4 g-2 c^4 d^2 (3 b d (d g+4 e f)-4 a e (2 d g+3 e f))+b^5 \left (-e^4\right ) g+12 c^5 d^4 f\right ) \int \frac {1}{b^2-(b+2 c x)^2-4 a c}d(b+2 c x)}{c}\right )}{c \left (b^2-4 a c\right )}-\frac {(d+e x) \left (x \left (-c^2 e \left (16 a^2 e^2 g+2 a b e (11 d g+3 e f)+b^2 (-d) (5 d g+6 e f)\right )+b^2 c e^2 g (15 a e+b d)-2 c^3 d (3 b d (d g+3 e f)-2 a e (4 d g+3 e f))-2 b^4 e^3 g+12 c^4 d^3 f\right )+2 b c \left (7 a^2 e^3 g+a c d e (7 d g+9 e f)+3 c^2 d^3 f\right )+b^3 \left (c d^2 e g-2 a e^3 g\right )-b^2 c d \left (a e^2 g+3 c d (d g+2 e f)\right )-4 a c^2 e \left (a e (8 d g+3 e f)+3 c d^2 f\right )\right )}{c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )}}{2 c \left (b^2-4 a c\right )}\)

\(\Big \downarrow \) 219

\(\displaystyle \frac {(d+e x)^3 \left (-x \left (-c (2 a e g+b d g+b e f)+b^2 e g+2 c^2 d f\right )-b (a e g+c d f)+2 a c (d g+e f)\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}-\frac {-\frac {2 \left (\frac {e^4 g \left (b^2-4 a c\right )^2 \int \frac {b+2 c x}{c x^2+b x+a}dx}{2 c}-\frac {\text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \left (4 c^3 e \left (3 a^2 e^2 (4 d g+e f)-3 a b d e (3 d g+2 e f)+b^2 d^2 (2 d g+3 e f)\right )-30 a^2 b c^2 e^4 g+10 a b^3 c e^4 g-2 c^4 d^2 (3 b d (d g+4 e f)-4 a e (2 d g+3 e f))+b^5 \left (-e^4\right ) g+12 c^5 d^4 f\right )}{c \sqrt {b^2-4 a c}}\right )}{c \left (b^2-4 a c\right )}-\frac {(d+e x) \left (x \left (-c^2 e \left (16 a^2 e^2 g+2 a b e (11 d g+3 e f)+b^2 (-d) (5 d g+6 e f)\right )+b^2 c e^2 g (15 a e+b d)-2 c^3 d (3 b d (d g+3 e f)-2 a e (4 d g+3 e f))-2 b^4 e^3 g+12 c^4 d^3 f\right )+2 b c \left (7 a^2 e^3 g+a c d e (7 d g+9 e f)+3 c^2 d^3 f\right )+b^3 \left (c d^2 e g-2 a e^3 g\right )-b^2 c d \left (a e^2 g+3 c d (d g+2 e f)\right )-4 a c^2 e \left (a e (8 d g+3 e f)+3 c d^2 f\right )\right )}{c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )}}{2 c \left (b^2-4 a c\right )}\)

\(\Big \downarrow \) 1103

\(\displaystyle \frac {(d+e x)^3 \left (-x \left (-c (2 a e g+b d g+b e f)+b^2 e g+2 c^2 d f\right )-b (a e g+c d f)+2 a c (d g+e f)\right )}{2 c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )^2}-\frac {-\frac {2 \left (\frac {e^4 g \left (b^2-4 a c\right )^2 \log \left (a+b x+c x^2\right )}{2 c}-\frac {\text {arctanh}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right ) \left (4 c^3 e \left (3 a^2 e^2 (4 d g+e f)-3 a b d e (3 d g+2 e f)+b^2 d^2 (2 d g+3 e f)\right )-30 a^2 b c^2 e^4 g+10 a b^3 c e^4 g-2 c^4 d^2 (3 b d (d g+4 e f)-4 a e (2 d g+3 e f))+b^5 \left (-e^4\right ) g+12 c^5 d^4 f\right )}{c \sqrt {b^2-4 a c}}\right )}{c \left (b^2-4 a c\right )}-\frac {(d+e x) \left (x \left (-c^2 e \left (16 a^2 e^2 g+2 a b e (11 d g+3 e f)+b^2 (-d) (5 d g+6 e f)\right )+b^2 c e^2 g (15 a e+b d)-2 c^3 d (3 b d (d g+3 e f)-2 a e (4 d g+3 e f))-2 b^4 e^3 g+12 c^4 d^3 f\right )+2 b c \left (7 a^2 e^3 g+a c d e (7 d g+9 e f)+3 c^2 d^3 f\right )+b^3 \left (c d^2 e g-2 a e^3 g\right )-b^2 c d \left (a e^2 g+3 c d (d g+2 e f)\right )-4 a c^2 e \left (a e (8 d g+3 e f)+3 c d^2 f\right )\right )}{c \left (b^2-4 a c\right ) \left (a+b x+c x^2\right )}}{2 c \left (b^2-4 a c\right )}\)

input
Int[((d + e*x)^4*(f + g*x))/(a + b*x + c*x^2)^3,x]
 
output
((d + e*x)^3*(2*a*c*(e*f + d*g) - b*(c*d*f + a*e*g) - (2*c^2*d*f + b^2*e*g 
 - c*(b*e*f + b*d*g + 2*a*e*g))*x))/(2*c*(b^2 - 4*a*c)*(a + b*x + c*x^2)^2 
) - (-(((d + e*x)*(b^3*(c*d^2*e*g - 2*a*e^3*g) - b^2*c*d*(a*e^2*g + 3*c*d* 
(2*e*f + d*g)) + 2*b*c*(3*c^2*d^3*f + 7*a^2*e^3*g + a*c*d*e*(9*e*f + 7*d*g 
)) - 4*a*c^2*e*(3*c*d^2*f + a*e*(3*e*f + 8*d*g)) + (12*c^4*d^3*f - 2*b^4*e 
^3*g + b^2*c*e^2*(b*d + 15*a*e)*g - 2*c^3*d*(3*b*d*(3*e*f + d*g) - 2*a*e*( 
3*e*f + 4*d*g)) - c^2*e*(16*a^2*e^2*g - b^2*d*(6*e*f + 5*d*g) + 2*a*b*e*(3 
*e*f + 11*d*g)))*x))/(c*(b^2 - 4*a*c)*(a + b*x + c*x^2))) - (2*(-(((12*c^5 
*d^4*f - b^5*e^4*g + 10*a*b^3*c*e^4*g - 30*a^2*b*c^2*e^4*g - 2*c^4*d^2*(3* 
b*d*(4*e*f + d*g) - 4*a*e*(3*e*f + 2*d*g)) + 4*c^3*e*(b^2*d^2*(3*e*f + 2*d 
*g) - 3*a*b*d*e*(2*e*f + 3*d*g) + 3*a^2*e^2*(e*f + 4*d*g)))*ArcTanh[(b + 2 
*c*x)/Sqrt[b^2 - 4*a*c]])/(c*Sqrt[b^2 - 4*a*c])) + ((b^2 - 4*a*c)^2*e^4*g* 
Log[a + b*x + c*x^2])/(2*c)))/(c*(b^2 - 4*a*c)))/(2*c*(b^2 - 4*a*c))
 

3.24.71.3.1 Defintions of rubi rules used

rule 25
Int[-(Fx_), x_Symbol] :> Simp[Identity[-1]   Int[Fx, x], x]
 

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 219
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* 
ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt 
Q[a, 0] || LtQ[b, 0])
 

rule 1083
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Simp[-2   Subst[I 
nt[1/Simp[b^2 - 4*a*c - x^2, x], x], x, b + 2*c*x], x] /; FreeQ[{a, b, c}, 
x]
 

rule 1103
Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S 
imp[d*(Log[RemoveContent[a + b*x + c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, 
e}, x] && EqQ[2*c*d - b*e, 0]
 

rule 1142
Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S 
imp[(2*c*d - b*e)/(2*c)   Int[1/(a + b*x + c*x^2), x], x] + Simp[e/(2*c) 
Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x]
 

rule 1233
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c 
_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[(-(d + e*x)^(m - 1))*(a + b*x + c*x^2) 
^(p + 1)*((2*a*c*(e*f + d*g) - b*(c*d*f + a*e*g) - (2*c^2*d*f + b^2*e*g - c 
*(b*e*f + b*d*g + 2*a*e*g))*x)/(c*(p + 1)*(b^2 - 4*a*c))), x] - Simp[1/(c*( 
p + 1)*(b^2 - 4*a*c))   Int[(d + e*x)^(m - 2)*(a + b*x + c*x^2)^(p + 1)*Sim 
p[2*c^2*d^2*f*(2*p + 3) + b*e*g*(a*e*(m - 1) + b*d*(p + 2)) - c*(2*a*e*(e*f 
*(m - 1) + d*g*m) + b*d*(d*g*(2*p + 3) - e*f*(m - 2*p - 4))) + e*(b^2*e*g*( 
m + p + 1) + 2*c^2*d*f*(m + 2*p + 2) - c*(2*a*e*g*m + b*(e*f + d*g)*(m + 2* 
p + 2)))*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && LtQ[p, -1] && 
GtQ[m, 1] && ((EqQ[m, 2] && EqQ[p, -3] && RationalQ[a, b, c, d, e, f, g]) | 
|  !ILtQ[m + 2*p + 3, 0])
 
3.24.71.4 Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(1500\) vs. \(2(533)=1066\).

Time = 0.56 (sec) , antiderivative size = 1501, normalized size of antiderivative = 2.76

method result size
default \(\text {Expression too large to display}\) \(1501\)
risch \(\text {Expression too large to display}\) \(8708\)

input
int((e*x+d)^4*(g*x+f)/(c*x^2+b*x+a)^3,x,method=_RETURNVERBOSE)
 
output
((25*a^2*b*c^2*e^4*g-40*a^2*c^3*d*e^3*g-10*a^2*c^3*e^4*f-15*a*b^3*c*e^4*g+ 
32*a*b^2*c^2*d*e^3*g+8*a*b^2*c^2*e^4*f-18*a*b*c^3*d^2*e^2*g-12*a*b*c^3*d*e 
^3*f+8*a*c^4*d^3*e*g+12*a*c^4*d^2*e^2*f+2*b^5*e^4*g-4*b^4*c*d*e^3*g-b^4*c* 
e^4*f+4*b^2*c^3*d^3*e*g+6*b^2*c^3*d^2*e^2*f-3*b*c^4*d^4*g-12*b*c^4*d^3*e*f 
+6*c^5*d^4*f)/c^2/(16*a^2*c^2-8*a*b^2*c+b^4)*x^3+1/2*(32*a^3*c^3*e^4*g+11* 
a^2*b^2*c^2*e^4*g+8*a^2*b*c^3*d*e^3*g+2*a^2*b*c^3*e^4*f-96*a^2*c^4*d^2*e^2 
*g-64*a^2*c^4*d*e^3*f-19*a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fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 2828 vs. \(2 (533) = 1066\).

Time = 1.72 (sec) , antiderivative size = 5676, normalized size of antiderivative = 10.45 \[ \int \frac {(d+e x)^4 (f+g x)}{\left (a+b x+c x^2\right )^3} \, dx=\text {Too large to display} \]

input
integrate((e*x+d)^4*(g*x+f)/(c*x^2+b*x+a)^3,x, algorithm="fricas")
 
output
Too large to include
 
3.24.71.6 Sympy [F(-1)]

Timed out. \[ \int \frac {(d+e x)^4 (f+g x)}{\left (a+b x+c x^2\right )^3} \, dx=\text {Timed out} \]

input
integrate((e*x+d)**4*(g*x+f)/(c*x**2+b*x+a)**3,x)
 
output
Timed out
 
3.24.71.7 Maxima [F(-2)]

Exception generated. \[ \int \frac {(d+e x)^4 (f+g x)}{\left (a+b x+c x^2\right )^3} \, dx=\text {Exception raised: ValueError} \]

input
integrate((e*x+d)^4*(g*x+f)/(c*x^2+b*x+a)^3,x, algorithm="maxima")
 
output
Exception raised: ValueError >> Computation failed since Maxima requested 
additional constraints; using the 'assume' command before evaluation *may* 
 help (example of legal syntax is 'assume(4*a*c-b^2>0)', see `assume?` for 
 more deta
 
3.24.71.8 Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 1368 vs. \(2 (533) = 1066\).

Time = 0.29 (sec) , antiderivative size = 1368, normalized size of antiderivative = 2.52 \[ \int \frac {(d+e x)^4 (f+g x)}{\left (a+b x+c x^2\right )^3} \, dx=\text {Too large to display} \]

input
integrate((e*x+d)^4*(g*x+f)/(c*x^2+b*x+a)^3,x, algorithm="giac")
 
output
1/2*e^4*g*log(c*x^2 + b*x + a)/c^3 + (12*c^5*d^4*f - 24*b*c^4*d^3*e*f + 12 
*b^2*c^3*d^2*e^2*f + 24*a*c^4*d^2*e^2*f - 24*a*b*c^3*d*e^3*f + 12*a^2*c^3* 
e^4*f - 6*b*c^4*d^4*g + 8*b^2*c^3*d^3*e*g + 16*a*c^4*d^3*e*g - 36*a*b*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2*c^4*d*e^3*f - b^5*c*e^4*f + 8*a 
*b^3*c^2*e^4*f + 2*a^2*b*c^3*e^4*f - 9*b^2*c^4*d^4*g + 12*b^3*c^3*d^3*e*g 
+ 24*a*b*c^4*d^3*e*g - 6*b^4*c^2*d^2*e^2*g - 6*a*b^2*c^3*d^2*e^2*g - 96...
 
3.24.71.9 Mupad [B] (verification not implemented)

Time = 14.90 (sec) , antiderivative size = 1763, normalized size of antiderivative = 3.25 \[ \int \frac {(d+e x)^4 (f+g x)}{\left (a+b x+c x^2\right )^3} \, dx=\text {Too large to display} \]

input
int(((f + g*x)*(d + e*x)^4)/(a + b*x + c*x^2)^3,x)
 
output
(atan((x*(32*a^2*c^5*(4*a*c - b^2)^(5/2) + 2*b^4*c^3*(4*a*c - b^2)^(5/2) - 
 16*a*b^2*c^4*(4*a*c - b^2)^(5/2)))/(c^2*(4*a*c - b^2)^5) + ((32*a^2*c^5*( 
4*a*c - b^2)^(5/2) + 2*b^4*c^3*(4*a*c - b^2)^(5/2) - 16*a*b^2*c^4*(4*a*c - 
 b^2)^(5/2))*(b^5*c^2 - 8*a*b^3*c^3 + 16*a^2*b*c^4))/(2*c^5*(4*a*c - b^2)^ 
5*(b^4 + 16*a^2*c^2 - 8*a*b^2*c)))*(12*c^5*d^4*f - b^5*e^4*g + 12*a^2*c^3* 
e^4*f - 6*b*c^4*d^4*g + 10*a*b^3*c*e^4*g + 16*a*c^4*d^3*e*g - 24*b*c^4*d^3 
*e*f - 30*a^2*b*c^2*e^4*g + 24*a*c^4*d^2*e^2*f + 48*a^2*c^3*d*e^3*g + 8*b^ 
2*c^3*d^3*e*g + 12*b^2*c^3*d^2*e^2*f - 24*a*b*c^3*d*e^3*f - 36*a*b*c^3*d^2 
*e^2*g))/(c^3*(4*a*c - b^2)^(5/2)) - (log(a + b*x + c*x^2)*(b^10*e^4*g - 1 
024*a^5*c^5*e^4*g - 20*a*b^8*c*e^4*g + 160*a^2*b^6*c^2*e^4*g - 640*a^3*b^4 
*c^3*e^4*g + 1280*a^4*b^2*c^4*e^4*g))/(2*(1024*a^5*c^8 - b^10*c^3 + 20*a*b 
^8*c^4 - 160*a^2*b^6*c^5 + 640*a^3*b^4*c^6 - 1280*a^4*b^2*c^7)) - ((8*a^2* 
c^4*d^4*g - 3*a^2*b^4*e^4*g + b^3*c^3*d^4*f - 24*a^4*c^2*e^4*g - 10*a*b*c^ 
4*d^4*f + a*b^2*c^3*d^4*g + a^2*b^3*c*e^4*f - 10*a^3*b*c^2*e^4*f + 21*a^3* 
b^2*c*e^4*g + 32*a^2*c^4*d^3*e*f + 32*a^3*c^3*d*e^3*f + 48*a^3*c^3*d^2*e^2 
*g - 36*a^2*b*c^3*d^2*e^2*f + 4*a^2*b^2*c^2*d*e^3*f + 6*a^2*b^2*c^2*d^2*e^ 
2*g + 4*a*b^2*c^3*d^3*e*f - 24*a^2*b*c^3*d^3*e*g + 4*a^2*b^3*c*d*e^3*g - 4 
0*a^3*b*c^2*d*e^3*g)/(2*c^3*(b^4 + 16*a^2*c^2 - 8*a*b^2*c)) - (x^3*(6*c^5* 
d^4*f + 2*b^5*e^4*g - 10*a^2*c^3*e^4*f - 3*b*c^4*d^4*g - b^4*c*e^4*f - 15* 
a*b^3*c*e^4*g + 8*a*c^4*d^3*e*g - 12*b*c^4*d^3*e*f - 4*b^4*c*d*e^3*g + ...